package com.vodone.v1pin.user.vo
{
	
	[Bindable]
	public class MyGoodsVO
	{
		public function MyGoodsVO( obj:Object = null )
		{
			if( null != obj )
			{
				parseData( obj );
			}
		}
		
		private function parseData( obj:Object ):void
		{
			if( obj.hasOwnProperty("id") )
			{
				this.id = obj["id"];
			}
			if( obj.hasOwnProperty("url") )
			{
				this.url = obj["url"];
			}
			if( obj.hasOwnProperty("discripte") )
			{
				this.discripte = obj["discripte"];
			}
			if( obj.hasOwnProperty("name") )
			{
				this.name = obj["name"];
			}
			if( obj.hasOwnProperty("price") )
			{
				this.price = obj["price"];
			}
			if( obj.hasOwnProperty("v1Price") )
			{
				this.v1Price = obj["v1Price"];
			}
			if( obj.hasOwnProperty("color") )
			{
				this.color = obj["color"];
			}
			if( obj.hasOwnProperty("size") )
			{
				this.size = obj["size"];
			}
			if( obj.hasOwnProperty("providerId") )
			{
				this.providerId = obj["providerId"];
			}
			if( obj.hasOwnProperty("providerName") )
			{
				this.providerName = obj["providerName"];
			}
			if( obj.hasOwnProperty("colorName") )
			{
				this.colorName = obj["colorName"];
			}
			if( obj.hasOwnProperty("proID") )
			{
				this.proID = obj["proID"];
			}
			if( obj.hasOwnProperty("storeCount") )
			{
				this.storeCount = obj["storeCount"];
			}
			 
		}
		
		/**
		 *url
		 */		
		public var url:String = "assets/temp/smllgoods.png";
		/**
		 *id
		 */		
		public var id:int;
		/**
		 *描述
		 */		
		public var discripte:String = "2012秋冬新款Armani石英表";
		/**
		 *名称
		 */		
		public var name:String = "2012秋冬新款Armani石英表";
		/**
		 * 价格 
		 */		
		public var price:Number = 1882;
		/**
		 * v1价格 
		 */		
		public var v1Price:Number = 1882;
		/**
		 * 颜色
		 */		
		public var color:String = "红色";
		/**
		 * 打小
		 */		
		public var size:String = "大";
		/**
		 * 数量
		 */		
		public var count:int = 1;
		/**
		 * 商品颜色
		 */		
		public var colorName:String = "红色";
		/**
		 * 物品是否已经选中
		 */		
		public var isSelected:Boolean = true;
		/**
		 * 商家id 
		 */		
		public var providerId:int = 1;
		/**
		 * 商家名称 
		 */		
		public var providerName:String = "数据库的哈达";
		/**
		 * 商家名称 
		 */		
		public var proID:String;
		/**
		 * 商家名称 
		 */		
		public var storeCount:int = 5;
		
	}
	
}